<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/base.jsp"%>
<!-- 查询医疗机构信息-->
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<base href="<%=basePath%>">

<title>医疗机构列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery-1.4.4.min.js"></script>
<script src="js/admin.js"></script>
</head>
<body>
	<div class="panel admin-panel">
		<div class="panel-head">
			<strong class="icon-reorder">医疗机构信息列表</strong>
		</div>
		<div class="padding border-bottom">
			<form id="form-add" method="post" class="form-x">
				<ul class="search" style="padding-left:10px;">
					<li><a class="button border-main"
						onclick="JavaScript:history.go(-1)"> 返回</a></li>

				</ul>
		</div>
		<table class="table table-hover text-center">
			<tr>
				<th>机构编号</th>
				<th>组织机构编号</th>
				<th>机构级别</th>
				<th>机构名称</th>
				<th>批准定点类型</th>
				<th>所属经济类型</th>
				<th>卫生机构小类</th>
				<th>主管单位</th>
				<th>成立时间</th>
				<th>法人代表</th>
				<th>注册资金</th>
			</tr>
			<%
					String instCode = request.getParameter("instCode");
					String pageNo = request.getParameter("pageNo");
					int p = pageNo == null ? 1 : Integer.parseInt(pageNo);
					MedicalDao dao = new MedicalDao();
					String sql = "select * from medical where instCode='"+instCode+"' ";
					Object[] params = {};
					Page pageBean = dao.queryOjectsByPage(sql, params, p, Constant.ROW);
				%>
			<%
					for (int i = 0; i < pageBean.getDatas().size(); i++) {

						Medical model = (Medical) pageBean.getDatas().get(i);
				%>
			<tr>
				<td><%=model.getInstCode()%></td>
				<td><%=model.getOrgaCode()%></td>
				<td><%=model.getInstGrade().getDataName()%></td>
				<td><%=model.getInstName()%></td>
				<td><%=model.getApprove().getDataName()%></td>
				<td><%=model.getEconomy().getDataName()%></td>
				<td><%=model.getHygieneSmall().getDataName()%></td>
				<td><%=model.getUnit()%></td>
				<td><%=model.getOpenDate()%></td>
				<td><%=model.getRepresent()%></td>
				<td><%=model.getFunds()%></td>

			</tr>
			<%
					}
				%>
		</table>
		</form>
</body>
</html>
